<?php

//<editor-fold defaultstate="collapsed" desc="License & Copyright">
/*
 * @license
 */

/**
 *
 * @author Jevgeni Geimanen (jevgeni.geimanen@gmail.com)
 */
//</editor-fold>
class HelloWorldForm_FieldCollectionBase extends FormFieldCollection {

    //<editor-fold defaultstate="collapsed" desc="Text">
    /**
     * @var TextFormField
     */
    private $_Text = null;

    /**
     *
     * @return TextFormField
     */
    public function getText() {
        if ($this->_Text === null) {
            $this->_Text = $this->AddFormField('Text', 'TextFormField');
        }
        return $this->_Text;
    
}

//</editor-fold>
    
    public function Create() {
        $this->getText();
        $this->getSubmitButton();
        return parent::Create();
    }

}

?>
